<?php

class spForm extends spElement
{
	public function  __construct( $data=null )
	{
		parent::__construct( "form", $data );
		
		if ( isset($data["name"]) )
			parent::addAttr ( "name", $data["name"] );		

		if ( isset($data["action"]) )
			parent::addAttr ( "action", $data["action"] );		

		if ( isset($data["method"]) )
			parent::addAttr ( "method", $data["method"] );		
	}
}

?>